package com.evony.client.action 
{
    import com.evony.common.*;
    import com.evony.common.module.*;
    
    public class VoteToPlayerCommands extends Object
    {
        public function VoteToPlayerCommands()
        {
            super();
            return;
        }

        public function setSender(arg1:com.evony.common.Sender):void
        {
            this.sender = arg1;
            var loc1:*=arg1;
            return;
        }

        public function voteToPlayerById(arg1:int, arg2:Function=null):com.evony.common.module.CommandResponse
        {
            this._voteToPlayerById_callback = arg2;
            var loc1:*=new Object();
            loc1.playerId = arg1;
            if (this.sender != null) 
            {
                sender.sendMessage("vote.voteToPlayerById", loc1);
            }
            return null;
        }

        public function voteToPlayerByName(arg1:String, arg2:Function=null):com.evony.common.module.CommandResponse
        {
            this._voteToPlayerByName_callback = arg2;
            var loc1:*=new Object();
            loc1.name = arg1;
            if (this.sender != null) 
            {
                sender.sendMessage("vote.voteToPlayerByName", loc1);
            }
            return null;
        }

        public var _voteToPlayerById_callback:Function;

        internal var sender:com.evony.common.Sender;

        public var _voteToPlayerByName_callback:Function;
    }
}
